#include "textureMap.h"

void UVMap::Map(const Intersection &isect, float *s, float *t, float *dsdx, float *dtdx, float *dsdy, float *dtdy) const {
	*s = su * isect.uv.x + du;
	*t = su * isect.uv.y + dv;
	*dsdx = su * isect.dudx;
	*dtdx = sv * isect.dvdx;
	*dsdy = su * isect.dudy;
	*dtdy = su * isect.dvdy;
}